package com.xdcplus.web.mapper;

import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.entity.ToolProductionLineOpe;
import com.xdcplus.web.common.pojo.query.ToolProductionLineOpeQuery;
import com.xdcplus.web.common.pojo.vo.ToolProductionCodeVO;
import com.xdcplus.web.common.pojo.vo.ToolProductionLineOpeVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (ToolProductionLineOpe)表数据库访问层
 *
 * @author Man.Chen
 * @since 2024-12-03 16:40:35
 */
public interface ToolProductionLineOpeMapper extends IBaseMapper<ToolProductionLineOpe> {

    /**
     * 查询(ToolProductionLineOpe)
     *
     * @param toolProductionLineOpeQuery (ToolProductionLineOpe)查询
     * @return {@link List<ToolProductionLineOpe>}
     */
    List<ToolProductionLineOpe> queryToolProductionLineOpe(ToolProductionLineOpeQuery toolProductionLineOpeQuery);

    @Select("SELECT id FROM TOOL_PRODUCTION_LINE_OPE WHERE MAIN_ID = #{mainId}")
    List<Long> findIdBymainId(@Param("mainId")Long mainId);

    List<ToolProductionLineOpeVO> findToolProductionLineOpe(@Param("mainId") Long mainId, @Param("opeName") String opeName);

    List<String> findCodeById(@Param("idList") List<Long> ids);

    List<ToolProductionCodeVO> findCodeByOpeId(@Param("idList") List<Long> ids);

    List<ToolProductionLineOpeVO> findOpesByMainId(@Param("idList") List<Long> ids);

}
